<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" src="/music/Public/Admin/Js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/music/Public/Admin/Js/index.js"></script>
<script type="text/javascript" src="/music/Public/Admin/Js/jq.js"></script>
<link rel="stylesheet" href="/music/Public/Admin/Css/public.css" />
<link rel="stylesheet" href="/music/Public/Admin/Css/index.css" />
<link rel="stylesheet" href="/music/Public/Admin/Css/login.css" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">

</head>
<table>
	<tr>
		<td><a href="/music/index.php/Admin/Music/edit/id/<?php echo ($id); ?>">基本修改</a></td>
		<td><a href="/music/index.php/Admin/Music/music/id/<?php echo ($id); ?>">歌曲修改</a></td>
	</tr>
</table>
<table>
	<form action="/music/index.php/Admin/Music/edit" method="post">
	<input type="hidden" name="id" value="<?php echo ($data["id"]); ?>" />
	<tr>
		<td>音乐名称:</td>
		<td><input type="text" name="musicName" value="<?php echo ($data["musicname"]); ?>" /></td>
	</tr>
	<tr>
		<td>音乐歌手:</td>
		<td>
			<select name="authorId" >
				<option value="0">请选择分类</option>
			<?php if(is_array($author)): foreach($author as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>" <?php if($v["id"] == $data["authorid"] ): ?>selected<?php endif; ?>><?php echo ($v["authorname"]); ?></option><?php endforeach; endif; ?>	
			</select>
		</td>
	</tr>
	<tr>
		<td>歌曲分类:</td>
		<td>
			<select name="sortsId">
				<option value="0">请选择分类</option>
			<?php if(is_array($sorts)): foreach($sorts as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>" <?php if($v["id"] == $data["sortsid"] ): ?>selected<?php endif; ?> ><?php echo ($v["sortsname"]); ?></option><?php endforeach; endif; ?>	
			</select>
		</td>
	</tr>
	<tr>
		<td>推荐分类:</td>
		<td>
			<select name="shareId">
				<option value="0">请选择分类</option>
			<?php if(is_array($share)): foreach($share as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>" <?php if($v["id"] == $data["shareid"] ): ?>selected<?php endif; ?>><?php echo ($v["sharename"]); ?></option><?php endforeach; endif; ?>	
			</select>
		</td>
	</tr>
	<tr>
		<td>试听次数:</td>
		<td>
			<input type="text" name="musicCount" value="<?php echo ($data["musiccount"]); ?>" />
		</td>
	</tr>
	<tr>
		<td>歌词:</td>
		<td>
			<textarea cols="50" name="musicLyric" style="height:100px;"><?php echo ($data["musiclyric"]); ?></textarea>
		</td>
	</tr>
	<tr>
		<td></td>
		<td><input type="submit" /></td>
	</tr>
	</form>
</table>